package press.xiang;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 基于禁忌算法实现仓储调度系统
 * @description: TODO
 * @author xiang
 * @date 2022/4/21 5:56 下午
 * @version 1.0
 */
@MapperScan("press.xiang.mapper")
@SpringBootApplication(exclude={SecurityAutoConfiguration.class})
@SpringBootConfiguration
public class TabuStoreManageApplication extends SpringBootServletInitializer {

    /**
     * 对于Servlet操作方式支持
     * @param application
     * @return
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(TabuStoreManageApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(TabuStoreManageApplication.class, args);
    }

}
